package com.aiti.lulian.entity;

import com.aiti.base.core.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("card_customer_collaborator")
public class CustomerCollaborator extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "base_id", type = IdType.ASSIGN_UUID)
    private String baseId;

    /**
     * 客户ID
     */
    @TableField("customer_id")
    private String customerId;

    /**
     * 协作人用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 创建者
     */
    @TableField("creator")
    private String creator;

    /**
     * 创建时间
     */
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 创建时间
     */
    @TableField(value = "base_update_time", fill = FieldFill.UPDATE)
    private Date baseUpdateTime;
}